﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="admin.ascx.cs" Inherits="admin" %>
<%@ Register src="DetailUser/DetailUser.ascx" tagname="DetailUser" tagprefix="uc2" %>

<style type="text/css">
    .style3
    {
        width: 53px;
     }
    .style10
    {
        width: 284px;
        height: 9px;
    }
    .style11
    {
        width: 225px;
        height: 19px;
        vertical-align: top;
    }
    .style12
    {
        width: 225px;
        height: 15px;
    }
    .style13
    {
        width: 225px;
        height: 286px;
        vertical-align: top;
    }
    .style14
    {
        width: 284px;
        height: 15px;
    }
    .style15
    {
        width: 225px;
        height: 9px;
        vertical-align: top;
    }
    .style17
    {
        width: 225px;
        height: 14px;
        vertical-align: top;
    }
    .style18
    {
        width: 53px;
        height: 14px;
    }
    .style20
    {
        width: 62px;
    }
    .style21
    {
        width: 54px;
    }
    .style22
    {
        width: 11px;
    }
</style>



<table style="width: 90%;">
    <tr>
        <td class="style13">
          <fieldset>
          <legend>[Список Пользователей]</legend>
            <asp:DataGrid ID="DataGrid1" OnItemCommand ="Item_Command" runat="server"
                AutoGenerateColumns="False" DataKeyField="UserId" Design_Time_Lock="True" HorizontalAlign="Left" 
                BackColor="White" BorderColor="#999999" BorderStyle="None" 
                BorderWidth="1px" CellPadding="3" AllowPaging="True" AllowSorting="True" 
                Width="420px" PageSize="18" 
                Height="250px" CellSpacing="2">
                <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                <SelectedItemStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                <PagerStyle BorderStyle="None" Font-Size="Larger" 
                    Mode="NumericPages" PageButtonCount="5" Position="TopAndBottom" 
                    VerticalAlign="Top" BackColor="#999999" ForeColor="Black" 
                    HorizontalAlign="Center" />
                <AlternatingItemStyle BackColor="#DCDCDC" />
                <ItemStyle BackColor="#EEEEEE" ForeColor="Black" />
                <Columns>
                    <asp:BoundColumn DataField="UserID" HeaderText="UserID" ReadOnly="True">
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="NickName" HeaderText="NickName" ReadOnly="True"></asp:BoundColumn>
                    <asp:BoundColumn DataField="Name" HeaderText="Name" ReadOnly="True"></asp:BoundColumn>
                    <asp:EditCommandColumn ButtonType="PushButton" CancelText="Cancel" 
                        EditText="Edit" UpdateText="Update"></asp:EditCommandColumn>
                    <asp:ButtonColumn ButtonType="PushButton" CommandName="Delete" Text="Delete">
                    </asp:ButtonColumn>
                    <asp:ButtonColumn ButtonType="PushButton" CommandName="Select" Text="Select">
                    </asp:ButtonColumn>
                </Columns>
                <HeaderStyle BackColor="#6699FF" Font-Bold="True" ForeColor="White" />
            </asp:DataGrid>
              </fieldset>
        </td>
        <td style="vertical-align: top;">
          <fieldset>
          <legend>[Параметры Пользователя]</legend>
            <uc2:DetailUser id="DetailUser1" runat="server" />
           </fieldset>
        </td>
    </tr>
    <tr>
        <td class="style12">
            <asp:Label ID="Label1" runat="server"></asp:Label>
        </td>
        <td class="style14" align="center">
          <fieldset>
            <asp:Button ID="Button3" runat="server" onclick="Button3_Click" Text="Clear" 
                Width="50px" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Button1" runat="server" Text="Add" Width="50px" 
                onclick="Button1_Click" />
               </fieldset>
        </td>
    </tr>
    <tr>
        <td class="style17">
         <fieldset>
          <legend>[Список Ролей Форумов и их категорий]</legend>
            <asp:DataGrid ID="DataGrid2" runat="server" AllowPaging="True" 
                AllowSorting="True" AutoGenerateColumns="False" Width="419px" 
                DataKeyField="UserRolesId" BackColor="#DEBA84" BorderColor="#3366CC" 
                BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2" PageSize="4">
                <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                <SelectedItemStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                <PagerStyle Mode="NumericPages" ForeColor="#8C4510" HorizontalAlign="Center" />
                <ItemStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                <Columns>
                    <asp:TemplateColumn HeaderText="RoleValue">
                        <EditItemTemplate>
                            <asp:DropDownList ID="DropDownList1" runat="server" Height="16px" Width="119px">
                            </asp:DropDownList>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="LabelR" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="ForumCategoryID">
                        <EditItemTemplate>
                            <asp:DropDownList ID="DropDownList2" runat="server" Height="16px" Width="130px">
                            </asp:DropDownList>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label22" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="ForumVirtID">
                        <EditItemTemplate>
                            <asp:DropDownList ID="DropDownList3" runat="server" Height="16px" Width="106px">
                            </asp:DropDownList>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label23" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:EditCommandColumn ButtonType="PushButton" CancelText="Cancel" 
                        EditText="Edit" UpdateText="Update"></asp:EditCommandColumn>
                    <asp:ButtonColumn ButtonType="PushButton" CommandName="Delete" Text="Delete">
                    </asp:ButtonColumn>
                </Columns>
                <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
            </asp:DataGrid>
              </fieldset>
        </td>
     
    <td class="style18" align="left" valign="top">
   <fieldset>
   <legend>[Выбор Роли для форумов и их категорий]</legend>
   
<table>
    <tr>
        <td >
            &nbsp;</td>
        <td class="style20" >
            &nbsp;</td>
        <td>
            <asp:Label ID="Label19" runat="server"></asp:Label>
        </td>
    </tr>
    <tr>
     
        <td>
            &nbsp;</td>
        <td class="style20">
            <asp:Label ID="Label17" runat="server" Text="NickName"></asp:Label>
        </td>
        <td>
            <asp:Label ID="Label18" runat="server" ForeColor="#FF0066"></asp:Label>
        </td>
      
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td class="style20">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td class="style20">
            <asp:Label ID="Label15" runat="server" Text="Роль"></asp:Label>
        </td>
        <td>
            <asp:DropDownList ID="DropDownDRoles" runat="server" Height="19px" 
                Width="205px">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td class="style20">
            <asp:Label ID="Label16"  runat="server" Text="Категория "></asp:Label>
        </td>
        <td>
            <asp:DropDownList ID="DropDownDForumCategory" runat="server" Height="19px" 
                Width="205px">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td class="style20">
    <asp:Label ID="Label20" runat="server" Text="Форум"></asp:Label>
        </td>
        <td>
            <asp:DropDownList ID="DropDownDForum" runat="server" Height="19px" 
                Width="205px">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td class="style20">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td class="style20">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    </table>

 
  
    </td>
    </tr>
    <tr>
      </fieldset>
      
        <td class="style15">
      
            <asp:Label ID="Label5" runat="server"></asp:Label>
        </td>
        <td class="style10" align="center">
         <fieldset>
              <asp:Button ID="Button4" runat="server" Height="19px" onclick="Button4_Click" 
                Text="Clear" Width="55px" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Button2" runat="server" Text="Add" Width="55px" 
                onclick="Button2_Click" />
          </fieldset>
            </td>
             
    </tr>
    <tr>
    
      
        <td class="style11">
         <fieldset>
         <legend>[Роль для блога]</legend>
            <asp:DataGrid ID="DataGrid3" runat="server"
                AutoGenerateColumns="False" DataKeyField="UserRolesId" 
                Design_Time_Lock="True" HorizontalAlign="Left" 
                BackColor="White" BorderColor="#3366CC" BorderStyle="None" 
                BorderWidth="1px" CellPadding="4" AllowPaging="True" AllowSorting="True" 
                Width="420px" 
                Height="16px" CellSpacing="2" PageSize="4">
                <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                <SelectedItemStyle BackColor="#00FF99" Font-Bold="True" ForeColor="#CCFF99" />
                <PagerStyle BorderStyle="None" Font-Size="Larger" 
                    Mode="NumericPages" PageButtonCount="5" 
                    VerticalAlign="Top" BackColor="#99CCCC" ForeColor="#003399" 
                    HorizontalAlign="Center" />
                <ItemStyle BackColor="White" ForeColor="#003399" />
                <Columns>
                    <asp:TemplateColumn HeaderText="RoleValue">
                        <EditItemTemplate>
                            <asp:DropDownList ID="DropDownList4" runat="server" Height="16px" Width="116px">
                            </asp:DropDownList>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label24" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:EditCommandColumn ButtonType="PushButton" CancelText="Cancel" 
                        EditText="Edit" UpdateText="Update"></asp:EditCommandColumn>
                    <asp:ButtonColumn ButtonType="PushButton" CommandName="Delete" Text="Delete">
                    </asp:ButtonColumn>
                    <asp:BoundColumn DataField="UserID" HeaderText="UserID" ReadOnly="True" 
                        Visible="False"></asp:BoundColumn>
                    <asp:BoundColumn DataField="UserRolesID" HeaderText="UserRolesID" 
                        ReadOnly="True" Visible="False">
                    </asp:BoundColumn>
                </Columns>
                <HeaderStyle BackColor="#CC99FF" Font-Bold="True" ForeColor="#CCCCFF" />
            </asp:DataGrid>
               </fieldset>
        </td>
              <td class="style3" align="left" valign="top">
 <fieldset>
         <legend>[Выбор Роли для блога]</legend>
<table>
    <tr>
        <td class="style22" >
            &nbsp;</td>
        <td class="style21" >
            &nbsp;</td>
        <td>
            <asp:Label ID="Label25" runat="server"></asp:Label>
        </td>
    </tr>
    <tr>
        <td class="style22">
            &nbsp;</td>
        <td class="style21">
            <asp:Label ID="Label26" runat="server" Text="NickName "></asp:Label>
        </td>
        <td>
            <asp:Label ID="Label27" runat="server" ForeColor="#FF0066"></asp:Label>
        </td>
    </tr>
    <tr>
        <td class="style22">
            &nbsp;</td>
        <td class="style21">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style22">
            &nbsp;</td>
        <td class="style21">
            <asp:Label ID="Label28" runat="server" Text="Роль"></asp:Label>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        </td>
        <td>
            <asp:DropDownList ID="DropDownDRoles1" runat="server" Height="19px" 
                Width="205px">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td class="style22">
            &nbsp;</td>
        <td class="style21">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style22">
            &nbsp;</td>
        <td class="style21">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style22">
            &nbsp;</td>
        <td class="style21">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style22">
            &nbsp;</td>
        <td class="style21">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    </table>
 </fieldset>

            </td>
    </tr>
    <tr>
        <td class="style15">
            <asp:Label ID="Label6" runat="server"></asp:Label>
        </td>
        <td class="style10" align="center">
        <fieldset>
            <asp:Button ID="Button5" runat="server" Height="19px" onclick="Button5_Click" 
                Text="Clear" Width="55px" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Button6" runat="server" Text="Add" Width="55px" 
                onclick="Button6_Click" />
                </fieldset>
            </td>
    </tr>
    </table>
<asp:DropDownList ID="DropDownForumCategory" runat="server" Visible="False">
</asp:DropDownList>
<asp:DropDownList ID="DropDownForum" runat="server" Visible="False">
</asp:DropDownList>

<asp:DropDownList ID="DropDownUsRoles" runat="server" Visible="False">
</asp:DropDownList>

<asp:DropDownList ID="DropDownUsRoles1" runat="server" Visible="False">
</asp:DropDownList>
<p>
    <asp:Label ID="Label7" runat="server"></asp:Label>
</p>

<asp:Label ID="lb_userId" runat="server" Visible="false" />

